package lxt.service;

import java.util.List;

import lxt.entity.TruckInfo;

public interface TruckService {
	/**
	 * 加载车辆信息(分页) 
	 * @return
	 */
	public List<TruckInfo> loadTruck(String truckId,String netryTime,int offset, int length)throws Exception;
	/**
	 * 添加车辆
	 */
	public boolean addTruck(TruckInfo truck)throws Exception;
	/**
	 * 根据id查找车辆
	 */
	public TruckInfo loadTruckById(String truckId)throws Exception;
	/**
	 * 修改车辆
	 */
	public boolean updateTruck(TruckInfo truck)throws Exception;
	/**
	 * 删除车辆
	 */
	public boolean deleteTruck(String truckId)throws Exception;
	/**
	 * 查询数量
	 */
	public int loadAllTruckCount(String truckId,String netryTime)throws Exception;
	/**
	 * 查询车辆信息
	 */
	public List<TruckInfo> loadAll()throws Exception;
}
